
class Square:
    """ Stores information about each square """
    
    def __init__(self, row=-1, col=-1):
        self.row = row
        self.col = col

    def __eq__(self, square):
        return self.col == square.col and self.row == square.row
    
    def __ne__(self, square):
        return not self.__eq__(square)
    
    def __str__(self):
        return str(self.row) + ' ' + str(self.col)

    def adjacent(self, square):
        if ( self.row - square.row <= 1 and self.row - square.row >= -1
            and self.col - square.col <= 1 and self.col - square.col >= -1 ):
                return True;